3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = ' 01 -'; echo (int) $x;

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.3.60.0070.01016.50
8.3.50.0060.00918.01
8.3.40.0180.00318.71
8.3.30.0060.00918.68
8.3.20.0060.00319.03
8.3.10.0020.00521.64
8.3.00.0080.00023.66
8.2.180.0140.00718.39
8.2.170.0110.00422.96
8.2.160.0140.00019.33
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0050.00222.21
8.2.120.0000.00726.35
8.2.110.0030.00622.22
8.2.100.0090.00317.91
8.2.90.0030.00619.15
8.2.80.0050.00317.97
8.2.70.0050.00317.91
8.2.60.0050.00317.93
8.2.50.0030.00718.10
8.2.40.0040.00419.44
8.2.30.0040.00419.17
8.2.20.0080.00018.16
8.2.10.0080.00018.02
8.2.00.0030.00519.32
8.1.280.0110.01125.92
8.1.270.0030.00622.02
8.1.260.0000.00726.35
8.1.250.0060.00328.09
8.1.240.0030.00622.14
8.1.230.0070.00418.87
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0060.00317.00
8.1.180.0000.00718.10
8.1.170.0030.00618.75
8.1.160.0070.00018.69
8.1.150.0000.00818.80
8.1.140.0030.00517.53
8.1.130.0040.00420.75
8.1.120.0030.00317.28
8.1.110.0050.00317.30
8.1.100.0000.00717.38
8.1.90.0040.00417.23
8.1.80.0040.00417.27
8.1.70.0040.00417.46
8.1.60.0030.00517.62
8.1.50.0060.00317.54
8.1.40.0080.00017.52
8.1.30.0070.00017.47
8.1.20.0080.00017.57
8.1.10.0000.00917.51
8.1.00.0040.00417.42
8.0.300.0070.00018.77
8.0.290.0080.00416.75
8.0.280.0000.00718.45
8.0.270.0030.00317.25
8.0.260.0080.00317.26
8.0.250.0000.00716.81
8.0.240.0050.00216.86
8.0.230.0000.00716.84
8.0.220.0000.00716.79
8.0.210.0030.00316.84
8.0.200.0040.00416.83
8.0.190.0030.00516.79
8.0.180.0060.00316.83
8.0.170.0000.00916.81
8.0.160.0050.00216.78
8.0.150.0070.00016.76
8.0.140.0070.00316.68
8.0.130.0000.00513.20
8.0.120.0030.00516.77
8.0.110.0000.00716.71
8.0.100.0000.00716.83
8.0.90.0000.00816.77
8.0.80.0050.01316.88
8.0.70.0030.00516.68
8.0.60.0000.00816.67
8.0.50.0000.00816.65
8.0.30.0120.00517.04
8.0.20.0090.01217.40
8.0.10.0070.00016.94
8.0.00.0070.01116.63
7.4.330.0000.00415.55
7.4.320.0060.00016.52
7.4.300.0000.00716.41
7.4.290.0070.00016.50
7.4.280.0100.00016.39
7.4.270.0030.00716.55
7.4.260.0100.00016.38
7.4.250.0070.00016.55
7.4.240.0040.00416.40
7.4.230.0030.00316.57
7.4.220.0070.00016.43
7.4.210.0110.00416.58
7.4.200.0000.00816.63
7.4.160.0080.00816.55
7.4.140.0120.00617.86
7.4.130.0000.01716.39
7.4.120.0090.00816.45
7.4.110.0190.00416.39
7.4.100.0150.00916.52
7.4.90.0060.01016.65
7.4.80.0190.00519.39
7.4.70.0100.00616.47
7.4.60.0040.01716.52
7.4.50.0090.00616.32
7.4.40.0100.00716.40
7.4.00.0030.01514.90
7.3.330.0060.00013.02
7.3.320.0000.00613.02
7.3.310.0000.00716.20
7.3.300.0000.00716.20
7.3.290.0030.00316.18
7.3.280.0070.00716.20
7.3.260.0080.00816.44
7.3.240.0110.00816.43
7.3.230.0100.00716.44
7.3.210.0060.01016.32
7.3.200.0040.01116.35
7.3.190.0120.00416.29
7.3.180.0160.00316.25
7.3.170.0060.01016.47
7.3.160.0070.01316.08
7.2.330.0000.01616.41
7.2.320.0110.00616.63
7.2.310.0170.00716.57
7.2.300.0060.01016.35
7.2.290.0070.01016.54
7.2.70.0940.00614.93
7.2.60.0800.01014.92
7.2.50.1260.00714.53
7.2.40.0820.00114.93
7.2.30.0760.01214.76
7.2.20.0780.01314.68
7.2.10.0610.01014.73
7.2.00.0880.01014.37
7.1.200.0100.00315.69
7.1.170.0770.01313.66
7.1.160.0980.00613.67
7.1.150.0730.00713.70
7.1.140.0820.00713.59
7.1.130.0620.01013.51
7.1.120.0750.01113.25
7.1.110.0680.00713.70
7.1.100.0730.00713.71
7.1.90.1150.00413.32
7.1.80.2190.00713.29
7.1.70.1380.01013.43
7.1.60.1310.00931.53
7.1.50.1650.01031.15
7.1.40.1580.01631.69
7.1.30.1690.00731.74
7.1.20.1870.00731.46
7.1.10.1610.00713.55
7.1.00.1340.00313.48

preferences:
61.39 ms | 404 KiB | 6 Q