3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = '' $test = (int)$test echo $test

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)
5.4.320.3370.04019.20
5.4.310.3470.04719.00
5.4.300.3300.04018.86
5.4.290.3200.03719.23
5.4.280.3200.04019.16
5.4.270.3330.03719.13
5.4.260.3270.03719.20
5.4.250.3300.04019.22
5.4.240.3000.04018.99
5.4.230.3470.04019.30
5.4.220.3330.04019.05
5.4.210.3270.03719.08
5.4.200.3370.03719.22
5.4.190.3500.04719.16
5.4.180.3900.04718.84
5.4.170.3300.03719.21
5.4.160.3870.04019.29
5.4.150.3470.04719.18
5.4.140.2600.04016.35
5.4.130.3070.03016.41
5.4.120.3030.03716.34
5.4.110.3470.04316.53
5.4.100.3070.02716.36
5.4.90.3070.03016.48
5.4.80.3470.04316.52
5.4.70.3970.03016.18
5.4.60.3300.03716.52
5.4.50.3270.04016.51
5.4.40.3300.03316.54
5.4.30.3000.03716.43
5.4.20.3100.03016.55
5.4.10.3300.04016.18
5.4.00.3330.03315.95
5.3.290.3100.03314.50
5.3.280.3370.03314.54
5.3.270.3400.03314.46
5.3.260.4000.03014.45
5.3.250.3030.04014.45
5.3.240.3030.04314.45
5.3.230.3330.03714.45
5.3.220.3070.03314.42
5.3.210.3230.04014.52
5.3.200.3530.03714.41
5.3.190.3400.03714.55
5.3.180.3330.03714.66
5.3.170.3500.04014.50
5.3.160.3300.03314.65
5.3.150.3230.04014.43
5.3.140.3170.03714.65
5.3.130.3370.03714.56
5.3.120.3200.03714.54
5.3.110.3170.04014.46
5.3.100.3400.03713.91
5.3.90.3330.03714.04
5.3.80.3300.03713.87
5.3.70.3200.03313.96
5.3.60.2600.04013.85
5.3.50.3470.03314.04
5.3.40.3030.04013.78
5.3.30.3030.03714.01
5.3.20.3170.03313.56
5.3.10.3230.03713.49
5.3.00.3400.03313.43
5.2.170.2630.03711.56
5.2.160.2530.02311.56
5.2.150.2500.03711.56
5.2.140.2570.02711.56
5.2.130.2600.02711.56
5.2.120.2570.02711.56
5.2.110.2530.03011.56
5.2.100.2730.03311.56
5.2.90.2530.02711.56
5.2.80.2700.03711.56
5.2.70.2530.03011.56
5.2.60.2630.02011.56
5.2.50.2600.02311.56
5.2.40.2030.02711.56
5.2.30.2000.03011.56
5.2.20.2000.02711.56
5.2.10.2270.03011.56
5.2.00.2430.03011.56
5.1.60.2300.02711.56
5.1.50.2300.02711.56
5.1.40.2030.02311.56
5.1.30.2300.02711.56
5.1.20.2270.03011.56
5.1.10.2570.03011.56
5.1.00.2700.02711.56
5.0.50.1500.02311.56
5.0.40.1600.02011.56
5.0.30.1500.03311.56
5.0.20.1400.02311.56
5.0.10.1270.01711.56
5.0.00.1130.03011.56
4.4.90.1130.01311.56
4.4.80.1000.01711.56
4.4.70.1030.01311.56
4.4.60.1030.01311.56
4.4.50.1270.01311.56
4.4.40.1270.02311.56
4.4.30.0970.01711.56
4.4.20.1100.01711.56
4.4.10.1030.01311.56
4.4.00.1330.02711.56
4.3.110.1070.01711.56
4.3.100.1130.02011.56
4.3.90.1130.01711.56
4.3.80.1230.03011.56
4.3.70.1030.01311.56
4.3.60.1170.00711.56
4.3.50.1270.02011.56
4.3.40.1170.02311.56
4.3.30.0470.01711.56
4.3.20.0470.01711.56
4.3.10.0670.02011.56
4.3.00.0600.01711.56

preferences:
145.61 ms | 1394 KiB | 7 Q