3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { function register() { if (!function_exists('test_init')) { function test_init() { echo 'Initializing library'.PHP_EOL; } } } } $test = new test; $test->register(); test_init(); ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.4.20.0100.01017.58
8.4.10.0100.01017.71
8.3.150.0090.00916.98
8.3.140.0040.00416.81
8.3.130.0050.00516.45
8.3.120.0030.00720.67
8.3.110.0030.00616.63
8.3.100.0090.00024.06
8.3.90.0070.00726.77
8.3.80.0070.00318.56
8.3.70.0070.00716.63
8.3.60.0080.00816.50
8.3.50.0130.00821.11
8.3.40.0110.00418.63
8.3.30.0110.00318.73
8.3.20.0040.00420.33
8.3.10.0040.00421.46
8.3.00.0050.00319.68
8.2.260.0040.00416.43
8.2.250.0030.00518.50
8.2.240.0040.00417.41
8.2.230.0050.00320.94
8.2.220.0110.00737.54
8.2.210.0070.00726.77
8.2.200.0060.00316.63
8.2.190.0160.00616.75
8.2.180.0140.00316.50
8.2.170.0080.00522.96
8.2.160.0070.00720.52
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00419.69
8.2.110.0030.00721.02
8.2.100.0110.00017.78
8.2.90.0080.00020.42
8.2.80.0060.00318.03
8.2.70.0040.00418.02
8.2.60.0040.00418.03
8.2.50.0050.00318.10
8.2.40.0090.00019.32
8.2.30.0000.00817.68
8.2.20.0040.00417.74
8.2.10.0080.00018.13
8.2.00.0000.00817.98
8.1.310.0040.00418.45
8.1.300.0130.00716.73
8.1.290.0060.00330.84
8.1.280.0130.00325.92
8.1.270.0110.00720.24
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00722.47
8.1.230.0110.00020.97
8.1.220.0000.00817.79
8.1.210.0030.00618.82
8.1.200.0090.00017.00
8.1.190.0040.00417.35
8.1.180.0000.00718.10
8.1.170.0060.00318.71
8.1.160.0040.00420.68
8.1.150.0030.00618.70
8.1.140.0040.00417.45
8.1.130.0000.00717.82
8.1.120.0050.00217.43
8.1.110.0040.00417.34
8.1.100.0000.00717.47
8.1.90.0030.00517.34
8.1.80.0000.00717.42
8.1.70.0050.00317.45
8.1.60.0050.00317.58
8.1.50.0000.00817.41
8.1.40.0040.00417.45
8.1.30.0080.00017.66
8.1.20.0000.00817.66
8.1.10.0040.00417.47
8.1.00.0050.00217.36
8.0.300.0000.00820.02
8.0.290.0080.00016.63
8.0.280.0070.00018.02
8.0.270.0000.00718.00
8.0.260.0000.00617.18
8.0.250.0030.00316.86
8.0.240.0030.00316.96
8.0.230.0040.00416.92
8.0.220.0040.00416.83
8.0.210.0000.00716.88
8.0.200.0030.00316.89
8.0.190.0000.00717.00
8.0.180.0080.00016.87
8.0.170.0040.00416.91
8.0.160.0000.00816.88
8.0.150.0050.00216.86
8.0.140.0110.00016.83
8.0.130.0080.00013.31
8.0.120.0000.00816.75
8.0.110.0070.00016.94
8.0.100.0050.00216.78
8.0.90.0040.00416.91
8.0.80.0060.00916.88
8.0.70.0040.00416.92
8.0.60.0040.00416.83
8.0.50.0040.00416.91
8.0.30.0130.00717.08
8.0.20.0150.00517.40
8.0.10.0050.00316.90
8.0.00.0120.00916.64
7.4.330.0020.00215.03
7.4.320.0030.00316.43
7.4.300.0050.00316.49
7.4.290.0030.00316.59
7.4.280.0050.00316.49
7.4.270.0000.00716.43
7.4.260.0040.00416.58
7.4.250.0000.00816.37
7.4.240.0000.00816.51
7.4.230.0000.00716.68
7.4.220.0140.00416.45
7.4.210.0040.01116.63
7.4.200.0000.00716.25
7.4.160.0160.00016.55
7.4.150.0090.00917.40
7.4.140.0100.00817.86
7.4.130.0100.00816.38
7.4.120.0070.01016.44
7.4.110.0110.00716.55
7.4.100.0070.01016.47
7.4.90.0060.01216.34
7.4.80.0140.00719.39
7.4.70.0060.01116.51
7.4.60.0060.01016.51
7.4.50.0060.00316.36
7.4.40.0120.00816.48
7.4.30.0130.01016.45
7.4.00.0070.01014.78
7.3.330.0040.00413.16
7.3.320.0030.00413.27
7.3.310.0020.00516.22
7.3.300.0030.00316.30
7.3.290.0070.01016.30
7.3.280.0070.01016.27
7.3.270.0100.00717.40
7.3.260.0090.00916.45
7.3.250.0070.01016.47
7.3.240.0140.00316.54
7.3.230.0090.00916.39
7.3.210.0080.00816.28
7.3.200.0000.01719.39
7.3.190.0060.01016.27
7.3.180.0120.00616.22
7.3.170.0080.00816.39
7.3.160.0100.00616.49
7.3.20.0450.00614.76
7.3.10.0610.00714.55
7.3.00.0430.01114.74
7.2.330.0090.00916.68
7.2.320.0090.01216.67
7.2.310.0070.01016.72
7.2.300.0100.01316.76
7.2.290.0130.00616.54
7.2.150.0560.00714.73
7.2.140.0550.00514.84
7.2.130.0510.00314.71
7.2.120.0630.01114.77
7.2.110.0510.01014.89
7.2.100.0440.00914.94
7.2.90.0300.00714.93
7.2.80.0500.01114.89
7.2.70.0560.00714.68
7.2.60.0470.00815.48
7.2.50.0700.01014.61
7.2.40.0610.00814.98
7.2.30.0540.00714.84
7.2.20.0410.00614.74
7.2.10.0460.00314.76
7.2.00.0420.00716.43
7.1.250.0510.00713.54
7.1.240.0510.00513.54
7.1.230.0540.01213.52
7.1.220.0530.00113.51
7.1.210.0600.00713.70
7.1.200.0350.00714.11
7.1.190.0600.00213.43
7.1.180.0620.00513.49
7.1.170.0500.00613.52
7.1.160.0560.00713.47
7.1.150.0650.00313.50
7.1.140.0490.00713.41
7.1.130.0600.00413.72
7.1.120.0700.00813.49
7.1.110.0540.00813.66
7.1.100.0280.00815.18
7.1.90.0510.00813.33
7.1.80.0510.01113.67
7.1.70.0330.00714.88
7.1.60.0360.01115.76
7.1.50.0390.01414.69
7.1.40.0790.00613.48
7.1.30.0490.00713.67
7.1.20.0610.00913.57
7.1.10.0520.00713.52
7.1.00.0360.02916.51
7.0.330.0480.00513.25
7.0.320.0590.00813.25
7.0.310.0600.00513.39
7.0.300.0270.01313.13
7.0.290.0630.00313.10
7.0.280.0600.00513.28
7.0.270.0530.00613.30
7.0.260.0690.01013.33
7.0.250.0290.00913.20
7.0.240.0600.00513.13
7.0.230.0550.00713.43
7.0.220.0560.00613.08
7.0.210.0530.00613.09
7.0.200.0420.00714.60
7.0.190.0560.01013.27
7.0.180.0600.00413.25
7.0.170.0450.01413.34
7.0.160.0530.01113.10
7.0.150.0490.00313.19
7.0.140.0820.00813.15
7.0.130.0550.00913.26
7.0.120.0560.00313.13
7.0.110.0630.00513.14
7.0.100.0630.00313.18
7.0.90.0530.00713.24
7.0.80.0680.00513.19
7.0.70.0550.00913.52
7.0.60.0460.03215.67
7.0.50.0400.03114.85
7.0.40.0490.02015.79
7.0.30.0530.01815.71
7.0.20.0400.02815.75
7.0.10.0440.02415.88
7.0.00.0390.02715.74
5.6.380.0070.01014.23
5.6.370.0100.00714.23
5.6.360.0130.00514.37
5.6.350.0170.00514.21
5.6.340.0140.01014.52
5.6.330.0080.01014.26
5.6.320.0190.00414.31
5.6.310.0120.01614.37
5.6.300.0200.01114.54
5.6.290.0180.00714.18
5.6.280.0120.03616.49
5.6.270.0150.00614.22
5.6.260.0070.01214.02
5.6.250.0140.00614.34
5.6.240.0120.01314.24
5.6.230.0190.00514.29
5.6.220.0110.01414.21
5.6.210.0070.03016.36
5.6.200.0130.03515.55
5.6.190.0100.01916.52
5.6.180.0280.02416.42
5.6.170.0200.02716.26
5.6.160.0120.02116.31
5.6.150.0120.02715.62
5.6.140.0100.02515.68
5.6.130.0100.01915.56
5.6.120.0090.02116.56
5.6.110.0100.02016.46
5.6.100.0170.03216.60
5.6.90.0120.02316.68
5.6.80.0090.01716.27
5.6.70.0150.00414.18
5.6.60.0090.00913.98
5.6.50.0130.00614.41
5.6.40.0160.00914.38
5.6.30.0120.01114.13
5.6.20.0170.00114.09
5.6.10.0170.00914.27
5.6.00.0150.01414.32
5.5.380.0150.00911.14
5.5.370.0150.00411.18
5.5.360.0100.00511.38
5.5.350.0090.03114.17
5.5.340.0110.02513.46
5.5.330.0020.03814.27
5.5.320.0070.01714.02
5.5.310.0160.02714.28
5.5.300.0080.02713.46
5.5.290.0110.01813.42
5.5.280.0100.02514.36
5.5.270.0130.02414.34
5.5.260.0090.03214.53
5.5.250.0090.02514.20
5.5.240.0100.03114.18
5.5.230.0110.00611.08
5.5.220.0080.00311.13
5.5.210.0080.01111.09
5.5.200.0140.00111.10
5.5.190.0120.00310.96
5.5.180.0090.01311.09
5.5.170.0140.00510.98
5.5.160.0090.01110.96
5.5.150.0050.01111.23
5.5.140.0110.00511.14
5.5.130.0050.01311.13
5.5.120.0090.00810.93
5.5.110.0060.01011.15
5.5.100.0070.00911.06
5.5.90.0130.00211.07
5.5.80.0090.00210.83
5.5.70.0110.00310.91
5.5.60.0110.00510.84
5.5.50.0070.00711.26
5.5.40.0080.01011.14
5.5.30.0140.00611.15
5.5.20.0060.01011.01
5.5.10.0090.00810.95
5.5.00.0120.00311.19
5.4.450.0080.02613.89
5.4.440.0090.02213.75
5.4.430.0090.02813.89
5.4.420.0070.03113.79
5.4.410.0090.02913.76
5.4.400.0110.01913.80
5.4.390.0120.02913.62
5.4.380.0060.02013.63
5.4.370.0100.02413.55
5.4.360.0050.02113.60
5.4.350.0110.02513.62
5.4.340.0100.02413.60
5.4.330.0070.00710.86
5.4.320.0080.03013.72
5.4.310.0100.02913.67
5.4.300.0070.02013.66
5.4.290.0070.02013.74
5.4.280.0100.02913.84
5.4.270.0120.03113.79
5.4.260.0150.02413.72
5.4.250.0100.01913.79
5.4.240.0080.02713.59
5.4.230.0110.01913.71
5.4.220.0120.01613.72
5.4.210.0060.02213.73
5.4.200.0110.02913.81
5.4.190.0140.02413.64
5.4.180.0060.03013.79
5.4.170.0090.02713.78
5.4.160.0110.02813.74
5.4.150.0080.02013.71
5.4.140.0050.01912.73
5.4.130.0080.02612.69
5.4.120.0100.01912.69
5.4.110.0090.02112.83
5.4.100.0110.01912.77
5.4.90.0060.02912.85
5.4.80.0110.02012.70
5.4.70.0130.01212.97
5.4.60.0090.01612.89
5.4.50.0090.02612.85
5.4.40.0040.01912.72
5.4.30.0090.02712.81
5.4.20.0130.02012.85
5.4.10.0040.02712.71
5.4.00.0100.02012.69

preferences:
78.32 ms | 403 KiB | 5 Q